/*
 * Copyright (C) 2013 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@import "base/environment";
@import "components/token_input";

$assign-border-color: #ccc;

// Overrides for New Assign section
// Note: a lot of these are overrides due to
// legacy code.
#edit_assignment_wrapper .overrides-column-right.overrideFormFlex {

  select, .subtitle {
    margin-left: 0;
  }
  label:not(.ic-Label) {
    padding: 0;
    margin: 0;
    &:hover {background: none;}
  }
}

.quiz-overrides-column-right{
  display: inline-block;
  margin-left: 20px;
  margin-top: -15px;
}

.Button.Button--add-row {
  text-align: center;
  border: 1px dashed $assign-border-color; // color matching legacy code
  border-top: 0;
  border-radius: 0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  width: 100%;
}
.Date__label{
  font-weight: bold;
}
.ContainerDueDate {
  margin: 20px 0; // matches legacy margins
}

.Container__DueDateRow {
  border: 1px solid $assign-border-color; // matching color to legacy code
  border-radius: 5px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.Container__DueDateRow-item {
  border-bottom: 1px solid #ccc;
  padding: 15px;
}

.DueDateRow__RemoveRow {
  text-align: right;
  margin: 0;
  padding: 0;
  > .Button.Button--link {
    padding: 0;
    color: $ic-font-color-dark;
  }
}

.UnlockLockInput {
  display: inline;
  width: 107px;
}

.DueDateInput {
  width: 285px;
  display: inline;
}

.DueDateInput__Container {
  display: inline;
}


.Available-from-to {
  display: flex;
  .from {
    margin-right: 3px;
  }
  .to {
    margin-left: 3px;
  }
  .Available-from-to__prompt {
    text-align: center;
    line-height: 38px;
    padding: 0 $ic-sp/2;
  }
}

.tokenInputThrobber{
  z-index: 9999;
  text-align: center;
  color:#e9e9e9;
  @include fontSize(10px);
  background: url("/images/load.gif") no-repeat 50% 80%;
  background-size: 16px;
  margin-bottom: -3px;
  min-width: 25px;
  min-height: 20px;
  display: inline-block;
}
